package buisness_service;

import java.util.ArrayList;
import java.util.List;

public class Categorie {
	private int id;
	private String nom;

	private List<String> sous_categorie;

	public Categorie(String nom) {
		this.setNom(nom);
		Rapport.nbCategories++;
		this.setId(Rapport.nbCategories);
		this.sous_categorie = new ArrayList<String>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public List<String> getSous_categorie() {
		return sous_categorie;
	}

	public void setSous_Categorie(List<String> enumeration_type) {
		this.sous_categorie = enumeration_type;
	}

	public void ajouter_type(String type) {
		this.getSous_categorie().add(type);
	}

}
